/***
 * 小程序鉴权
 * @ userinfo
 * @ redirect:回调地址
 * 
 */
export default (userinfo,redirect)=>{
 if(userinfo && userinfo.openid){
   return true
 }
 wx.showToast({ title:'请先授权登录',icon:'none' })
 setTimeout(()=>{
  const _redirect = encodeURIComponent(redirect)
  wx.navigateTo({
    url: "/fs_wmall/pages/my/index?redirect=" + _redirect,
  });   
 },500)
 return false
}



